package com.couldtest.providerA;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@EnableSwagger2Doc
@EnableEurekaClient
@SpringBootApplication
@RestController
@MapperScan("com.couldtest.providerA.mapper")
public class ServerProviderAApplication {

	@RequestMapping("/")
	public String home() {
		return "Hello world";
	}

	/*public static void main(String[] args) {
		new SpringApplicationBuilder(ServerProviderAApplication.class).profiles("dev").run(args);
	}*/
	public static void main(String[] args) {
		SpringApplication.run(ServerProviderAApplication.class, args);
	}

	/*@Bean
	public MySQLStatementInterceptorManagementBean mySQLStatementInterceptorManagementBean() {
		Brave myBrave = new Brave.Builder("myBrave").build();
		return new MySQLStatementInterceptorManagementBean(myBrave.clientTracer());
	}*/
}
